using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Controls.Misc
{
    public partial class FCKEditor : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //FCKeditor1.BasePath = Helpers.StringHelper.GetRelativePath(@"../fckeditor/");
                //FCKeditor1.PluginsPath = Helpers.StringHelper.GetRelativePath(@"../fckeditor/editor/plugins/");
                //FCKeditor1.EnableSourceXHTML = false;
                //FCKeditor1.EnableXHTML = true;
                //FCKeditor1.UseBROnCarriageReturn = true;
            }
        }

        public string Text
        {
            get
            {
                return FCKEditor1.Text;
            }
            set
            {
                FCKEditor1.Text = value;
            }
        }

        public Unit Height
        {
            get
            {
                return FCKEditor1.Height;
            }
            set
            {
                FCKEditor1.Height = value;
            }
        }

        public Unit Width
        {
            get
            {
                return FCKEditor1.Width;
            }
            set
            {
                FCKEditor1.Width = value;
            }
        }
    }
}